package com.aliothservice.catfish.product.data;

import java.util.HashMap;
import java.util.Map;

import org.springframework.data.annotation.Id;

public class ProductSpec {
	
	public Map<String, Object> toMap() {
		Map<String, Object> map = new HashMap<String, Object>();
		
		map.put("keySpec", this.getKeySpec());
		map.put("name", this.getName());
		map.put("category", this.getCategory());
		map.put("province", this.getProvince());
		map.put("city", this.getCity());
		map.put("district", this.getDistrict());
		map.put("originProvince", this.getOriginProvince());
		map.put("originCity", this.getOriginCity());
		map.put("originDistrict", this.getOriginDistrict());
		map.put("productPhotoId", this.getProductPhotoId());
		map.put("stock", this.getStock());
		
		return map;
	}
	
	@Id
	private String id;
	
	// who owns this product spec
	private String userId;
	
	private String keySpec;
	
	private String name;
	private String category;
	private String province;
	private String city;
	private String district;
	private String originProvince;
	private String originCity;
	private String originDistrict;
	
	private String productPhotoId;
	
	private Integer stock;

	private String individual;
	private String enterprise;
	
	private String manInChargeName;
	private String manInChargePhoneNumber;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getKeySpec() {
		return keySpec;
	}

	public void setKeySpec(String keySpec) {
		this.keySpec = keySpec;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getOriginProvince() {
		return originProvince;
	}

	public void setOriginProvince(String originProvince) {
		this.originProvince = originProvince;
	}

	public String getOriginCity() {
		return originCity;
	}

	public void setOriginCity(String originCity) {
		this.originCity = originCity;
	}

	public String getOriginDistrict() {
		return originDistrict;
	}

	public void setOriginDistrict(String originDistrict) {
		this.originDistrict = originDistrict;
	}

	public String getProductPhotoId() {
		return productPhotoId;
	}

	public void setProductPhotoId(String productPhotoId) {
		this.productPhotoId = productPhotoId;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public String getIndividual() {
		return individual;
	}

	public void setIndividual(String individual) {
		this.individual = individual;
	}

	public String getEnterprise() {
		return enterprise;
	}

	public void setEnterprise(String enterprise) {
		this.enterprise = enterprise;
	}

	public String getManInChargeName() {
		return manInChargeName;
	}

	public void setManInChargeName(String manInChargeName) {
		this.manInChargeName = manInChargeName;
	}

	public String getManInChargePhoneNumber() {
		return manInChargePhoneNumber;
	}

	public void setManInChargePhoneNumber(String manInChargePhoneNumber) {
		this.manInChargePhoneNumber = manInChargePhoneNumber;
	}

}
